package top.bluesword.laboratory.model.mock;


import top.bluesword.laboratory.model.Journey;
import top.bluesword.laboratory.model.JourneySegment;

import java.util.List;

public class JourneyMock {

    public static Journey mock(){
        Journey journey = new Journey();
        journey.setTimeSpan(OffsetTimeSpanMock.mock());
        JourneySegment journeySegment = new JourneySegment();
        journeySegment.setStartLocationCode("成都");
        journeySegment.setEndLocationCode("长安");
        journey.setSegments(List.of(journeySegment));
        return journey;
    }

}
